package com.wchat.service;

import com.wchat.dataobject.OrderMaster;
import com.wchat.dto.OrderDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by yangtianrui on 17/8/11.
 */
public interface OrderService {

    /** 创建订单*/
    OrderDto create(OrderDto orderDto);
    /**查询订单*/
    OrderDto findOne(String orderId);
    /**查询订单列表*/
    Page<OrderDto> findOrderList(String buyerOpenid, Pageable pageable);
    /** 取消订单 */
    OrderDto cancel(OrderDto orderDto);
    /** 完结订单*/
    OrderDto finishi(OrderDto orderDto);
    /**支付订单*/
    OrderDto paid(OrderDto orderDto);

}
